package com.hbu.myblog.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;


@Data
public class Blog {
    //博客的ID
    private Long blogId;
    //博客的标题
    private String blogTitle;
    //博客的简介
    private String blogSummary;
    //博客的封面Id
    private Integer blogCategoryId;
    //博客的分类名称
    private String blogCategoryName;
    //博客的标签
    private String blogTags;
    //博客的状态
    private Byte blogStatus;
    //博客的访问量
    private Long blogViews;
    //博客的评论数
    private Byte enableComment;
    //博客的是否被删除
    private Byte isDeleted;
    //博客的创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //博客的更新时间
    private Date updateTime;
    //博客的内容
    private String blogContent;

}
